package org.liveboardgames.agricola.control.delegates.action.overrideaction
{
    import org.liveboardgames.agricola.vo.action.Action;
    import org.liveboardgames.agricola.vo.common.Target;
    
    public class ActionOverride
    {
        public var overriddenAction:Action;
        
        public var target:Target;
        
        public function ActionOverride(overriddenAction:Action, target:Target)
        {
            this.overriddenAction = overriddenAction;
            this.target = target;
        }
        
        public function overrideAction():void
        {
            throw new Error("The overrideAction() method was not overridden, in which case there is no meaning in defining an action override");
        }
    }
}